<extend name="Public/baseConf"/>
<block name="breadcrumb"> 
	<div class="row wrapper border-bottom white-bg page-heading">
	    <div class="col-lg-6">
	        <h2><present name="data">{$info['id']?'编辑':'新增'}导航
	        <notempty name="pid">
				[&nbsp;父导航：<a href="{:U('index','pid='.$pid)}">{$parent.title}</a>&nbsp;]
			</notempty>
	        </h2>
	        <ol class="breadcrumb">
	            <li><a href="{:U('index/index')}">首页</a></li>
	            <li><a href="{:U('Channel/index')}">导航管理</a></li>
	            <li class="active">
	                <strong>{$info['id']?'编辑':'新增'}导航</strong>
	            </li>
	        </ol>
	    </div>
	    <div class="col-lg-6">
            <div class="title-action">
 				<button class="btn btn-primary ajax-post" type="submit" target-form="form-horizontal"><i class="fa fa-check"></i>保存</button>
	            <a class="btn btn-warning" type="submit" onclick="javascript:history.back(-1);return false;"><i class="fa fa-reply"></i>返回</a>
            </div>
        </div>
	</div>
</block>
<block name="body">
	<div class="row">
	    <div class="col-lg-12">
	        <div class="ibox float-e-margins">
	            <div class="ibox-title">
	                <h5>请在下表中填入信息<small></small></h5>
	                <div class="ibox-tools">
	                    <a class="collapse-link">
	                        <i class="fa fa-chevron-up"></i>
	                    </a>
	                </div>
	            </div>
	            <div class="ibox-content">
	                <form action="{:U()}" method="post" class="form-horizontal">
	                	<input type="hidden" name="pid" value="{$pid}">
	                	<input type="hidden" name="id" value="{$info.id|default=''}">
 						<notempty name="$info.level"><!-- 编辑 -->
 							<input type="hidden" name="level" value="{$info.level}">
						<else/><!-- 新增 -->
								<input type="hidden" name="level" value="{$level}">
						</notempty>
	                	
	                    <div class="form-group"><label class="col-sm-4 control-label">导航标题<span class="check-tips">（用于显示的文字）</span></label>
	                        <div class="col-sm-8"><input type="text" name="title" value="{$info.title|default=''}" class="form-control"></div>
	                    </div>
						<div class="hr-line-dashed"></div>
	                    <div class="form-group"><label class="col-sm-4 control-label">导航连接<span class="check-tips">（用于调转的URL，支持带http://的URL或U函数参数格式）</span></label>
	                        <div class="col-sm-8"><input type="text"  name="url" value="{$info.url|default=''}" class="form-control"></div>
	                    </div>
						<div class="hr-line-dashed"></div>
	                    <div class="form-group"><label class="col-sm-4 control-label">新窗口打开<span class="check-tips">（是否新窗口打开链接）</span></label>
	                        <div class="col-sm-8"><select name="target" class="form-control">
								<option value="0" <eq name="info.target" value="0" >selected</eq>>否</option>
								<option value="1" <eq name="info.target" value="1" >selected</eq>>是</option>
				                </select></div>
	                    </div>
						<div class="hr-line-dashed"></div>
	                    <div class="form-group"><label class="col-sm-4 control-label">优先级<span class="check-tips">（导航显示顺序）</span></label>
	                        <div class="col-sm-8"><input type="text"  name="sort" value="{$info.sort|default='0'}" class="form-control"></div>
	                    </div>
						<div class="hr-line-dashed"></div>

	                </form>
	            </div>
	        </div>
	    </div>
	</div> 
</block>
<block name="script">
<script type="text/javascript" charset="utf-8">
	//导航高亮
	highlight_subnav('{:U('index')}');
</script>
</block>
